package ru.st.selenium.pages;

import static org.openqa.selenium.support.ui.ExpectedConditions.presenceOfElementLocated;

import org.openqa.selenium.By;

public class FilmViewPage extends InternalPage {

	public FilmViewPage(PageManager pages) {
		super(pages);
	}
	
	public FilmViewPage ensurePageLoaded() {
	    super.ensurePageLoaded();
	    wait.until(presenceOfElementLocated(By.id("movie")));
	    return this;
	}
}
